
let ____app_key = 'JXHBTT';
let ____setUserCB = function (info) { };
let ____setUser = function (info) {
    // $('#log').text('成功返回:' + JSON.stringify(info));
    if (!info)
        return location.href = ____app_key + '://users/login';
    if (info.face)
        info.face = 'http://pic.tt.jxnews.com.cn' + info.face;
    ____setUserCB(info);
}
function JXTT(app_id) {
    ____app_key = app_id || 'JXHBTT';
    this.getUserInfo = function (cb) {
        ____setUserCB = cb;
        $('#log').text('获取用户信息');
        location.href = ____app_key + '://users/getInfo?cb=____setUser';
    }
}